package com.simple.datax.db.mybatis.model;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 
 * @author paladin
 *
 */
public class DataxProcing implements Serializable {
    private String recvRawMsgid;

    private Short resendCount;

    private Short status;

    private Date time;

    private static final long serialVersionUID = 1L;

    public String getRecvRawMsgid() {
        return recvRawMsgid;
    }

    public void setRecvRawMsgid(String recvRawMsgid) {
        this.recvRawMsgid = recvRawMsgid == null ? null : recvRawMsgid.trim();
    }

    public Short getResendCount() {
        return resendCount;
    }

    public void setResendCount(Short resendCount) {
        this.resendCount = resendCount;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DataxProcing other = (DataxProcing) that;
        return (this.getRecvRawMsgid() == null ? other.getRecvRawMsgid() == null : this.getRecvRawMsgid().equals(other.getRecvRawMsgid()))
            && (this.getResendCount() == null ? other.getResendCount() == null : this.getResendCount().equals(other.getResendCount()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRecvRawMsgid() == null) ? 0 : getRecvRawMsgid().hashCode());
        result = prime * result + ((getResendCount() == null) ? 0 : getResendCount().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
        return result;
    }
    
    public String toString() {
		return ReflectionToStringBuilder.toString(this,
				ToStringStyle.SHORT_PREFIX_STYLE);
	}
}